package com.tarena.lbs.basic.pojo.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tarena.lbs.base.protocol.pager.BasePageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class TagParam extends BasePageQuery implements Serializable {
    @Schema(description = "id",example = "1", required = true)
    private Integer id;

    @Schema(description = "标签名称",example = "旅行")
    private String tagName;

    @Schema(description = "启用状态",example = "0")
    private Integer status;

    @Schema(description = "标签分组",example = "1")
    private Integer tagType;

    @Schema(description = "标签描述",example = "1")
    private String tagDesc;

    @Schema(description = "上级标签id",example = "1")
    private Integer tagParentId;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "开始时间",example = "2023-01-01 01:01:01")
    private Date startingTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "结束时间",example = "2023-01-01 01:01:01")
    private Date endTime;
}
